﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dapper;
using System.Text.RegularExpressions;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using Microsoft.Practices.EnterpriseLibrary.Data;
using System.Data.Odbc;
using System.Data;
using _180FrameWork.DataBaseHelper.Entities;

namespace _180FrameWork.DataBaseHelper.OracleExtend
{
    public class OracleDapperHelper : DapperHelper
    {
        protected override string GetPageSQL(string sql, string orderby)
        {
            return "";
        }
        protected override string ParamChar { get { return ":"; } }
        public OracleDapperHelper(string DBConnectionString)
        {
            if (DBConnectionString.Contains("OraOLEDB.Oracle.1"))
            {
                _db = new GenericDatabase(DBConnectionString, System.Data.OleDb.OleDbFactory.Instance);
            }
            else
            {
                _db = new Microsoft.Practices.EnterpriseLibrary.Data.Oracle.OracleDatabase(DBConnectionString);
            }
        }


    }
}
